package com.ww.service.impl;

import com.ww.pojo.Wallpaper;
import com.ww.entity.WallpaperDownload;
import com.ww.mapper.WallpaperDownloadDao;
import com.ww.service.WallpaperDownloadService;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;

import javax.annotation.Resource;
import java.util.List;

/**
 * (WallpaperDownload)表服务实现类
 *
 * @author makejava
 * @since 2022-05-21 13:14:03
 */
@Service("wallpaperDownloadService")
public class WallpaperDownloadServiceImpl implements WallpaperDownloadService {
    @Resource
    private WallpaperDownloadDao wallpaperDownloadDao;



    /**
     * 新增数据
     *
     * @param wallpaperDownload 实例对象
     * @return 实例对象
     */
    @Override
    public WallpaperDownload insert(WallpaperDownload wallpaperDownload) {
        this.wallpaperDownloadDao.insert(wallpaperDownload);
        return wallpaperDownload;
    }

    public List<WallpaperDownload> selectAll(){
        return this.wallpaperDownloadDao.selectAll();
    }

}
